/**
 * Created by Skipper on 2017/5/8.
 */
import React from 'react';
import {PropTypes} from 'prop-types'
import {
  Jetgo_Android_3_0,
  Jetgo_IOS_3_0,
  Deliver_Android,
  Deliver_IOS,
  Sail_Android_Test,
  Sail_IOS_Test,
  jetgo_2_0_airwayprod,
  jetgo_2_0_airwayprod_IOS,
  XCX_Experience,
  deliver_xcx_qr,
  deliver_qr,
} from './base64Image'

const ImgArr = [
  {
    name: '捷雁3.0',
    title: 'Jetgo_Android_3_0',
    platform: 'Android',
    url: 'jieyan.xyitech.com/static/Jetgo_Android_3.0.apk',
    src: Jetgo_Android_3_0,
    password: 'xunyi',
  },
  {
    name: '捷雁3.0',
    title: 'Jetgo_IOS_3_0',
    platform: 'IOS',
    url: 'https://www.pgyer.com/Joaz',
    src: Jetgo_IOS_3_0,
    password: 'xunyi',
  },
  {
    name: '交付',
    title: 'Deliver_Android',
    platform: 'Android',
    url: 'http://jieyan.xyitech.com/static/Delivery.apk',
    src: Deliver_Android,
    password: 'xunyi',
  },
  {
    name: '交付',
    title: 'Deliver_IOS',
    platform: 'IOS',
    url: 'https://www.pgyer.com/xyi_deliver_com',
    src: Deliver_IOS,
    password: 'xunyi',
  }, {
    name: '开航',
    title: 'Sail_Android_Test',
    platform: 'Android',
    url: 'http://jieyan.xyitech.com/static/sail_beta.apk',
    src: Sail_Android_Test,
    password: 'xunyi',
  },
  {
    name: '开航',
    title: 'Sail_IOS_Test',
    platform: 'IOS',
    url: 'https://www.pgyer.com/Sail',
    src: Sail_IOS_Test,
    password: 'xunyi',
  }, {
    name: '捷雁2.0',
    title: 'jetgo_2_0_airwayprod',
    platform: 'Android',
    url: 'http://jieyan.xyitech.com/static/jetgo2.0airwayprod.apk',
    src: jetgo_2_0_airwayprod,
    password: 'xunyi',
  },
  {
    name: '捷雁2.0',
    title: 'jetgo_2_0_airwayprod_IOS',
    platform: 'IOS',
    url: 'https://www.pgyer.com/tsB3',
    src: jetgo_2_0_airwayprod_IOS,
    password: 'xunyi',
  },
  {
    name: '迅蚁速运',
    title: '体验版二维码',
    platform: '体验版',
    url: '--',
    src: XCX_Experience,
    password: '--',
  }, {
    name: '迅蚁速运',
    title: '小程序码',
    platform: '正式版',
    url: '--',
    src: deliver_xcx_qr,
    password: '--',
  }, {
    name: '迅蚁速运',
    title: '普通二维码',
    platform: '正式版',
    url: '--',
    src: deliver_qr,
    password: '--',
  },
];
export default class Index extends React.Component {
  constructor(props) {
    super(props);
    this.state = {}
  }

  componentWillMount() {
  }

  render() {
    return (
      <div className="img-container">
        {
          ImgArr.map((item, index) => {
            return (<div key={`img${index}`} className="item">
              <img src={item.src} alt="" className="img"/>
              <div>{`应用：${item.name}`}</div>
              <div>{`版本：${item.platform}`}</div>
              <div>{`链接：`}<a href={`${item.url}`}>{item.url}</a></div>
              <div>{`密码：${item.password}`}</div>
              <div>{`说明：${item.title}`}</div>
            </div>)
          })}
      </div>
    );
  }
}
